modif creation dossier common app nextcloud master
authorrominique <romain.legoff@heureux-cyclage.org>
Tue, 18 Jun 2024 13:09:07 +0000 (15:09 +0200)
committerrominique <romain.legoff@heureux-cyclage.org>
Tue, 18 Jun 2024 13:09:07 +0000 (15:09 +0200)
update_nuage_instance.yml

index c1d8fe4..eeed883 100644 (file)
         ansible_become: true
         become_user: nextcloud
 
-    - name: Create new app common folder from old version one
-      become_user: nextcloud
+    - name: Création du dossier common de la nouvelle version en utilisant les apps de l'instance test-nuage
       become: true
       ansible.builtin.copy:
-        src: "{{ nextcloud_common_files_path }}/nextcloud-{{ ancienne_version }}/"
-        dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}"
+        src: "/home/site/home/sites/data/org/heureux-cyclage/test-nuage/apps/*"
+        dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}/"
         remote_src: true # because the copy is from remote host to remote host
         mode: '754' # or 'u=rwx,g=rx,o=r'
-      when: not new_nextcloud_common.stat.exists
+        owner: nextcloud
+        group: nextcloud
 
     - name: Include backup tasks
       ansible.builtin.include_tasks: tasks/backup_nextcloud.yml